﻿using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace TfsMerge.View
{
    public partial class BaseDialog : XtraForm
    {
        public BaseDialog()
        {
            InitializeComponent();

            simpleButtonOk.Click += (x, y) => OnOkClick();
            simpleButtonCancel.Click += (x, y) => OnCancelClick();
        }

        public virtual void OnOkClick()
        {
            DialogResult = DialogResult.OK;
            Close();
        }
        public virtual void OnCancelClick()
        {
            DialogResult = DialogResult.Cancel;
            Close();
        }
    }
}
